package com.hushao.lims.weblims.service;

import com.hushao.lims.weblims.domain.EquipmentInfo;
import com.hushao.lims.weblims.domain.EquipmentRepertory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author 930588706
 * @date 18/1/22
 * 器材库存
 */
public interface EquipmentRepertoryService {
    /**
     * 根据器材名称模糊查询器材库存（分页）
     * @param equipmentName
     * @param pageable
     * @return
     */
    Page<EquipmentRepertory> listEquipmentByName(String equipmentName, Pageable pageable);

    /**
     * 根据器材查询库存
     * @param equipmentInfo
     * @return
     * @throws Exception
     */
    EquipmentRepertory findByEquipment(EquipmentInfo equipmentInfo)throws Exception;

    /**
     * 修改库存
     * @param equipmentRepertory
     * @return
     * @throws Exception
     */
    EquipmentRepertory saveOrUpdate(EquipmentRepertory equipmentRepertory)throws Exception;


}
